﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200109D RID: 4253
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RotateMapScRsp : IMessage<RotateMapScRsp>, IMessage, IEquatable<RotateMapScRsp>, IDeepCloneable<RotateMapScRsp>, IBufferMessage
	{
		// Token: 0x170035A8 RID: 13736
		// (get) Token: 0x0600BDEE RID: 48622 RVA: 0x002003B5 File Offset: 0x001FE5B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RotateMapScRsp> Parser
		{
			get
			{
				return RotateMapScRsp._parser;
			}
		}

		// Token: 0x170035A9 RID: 13737
		// (get) Token: 0x0600BDEF RID: 48623 RVA: 0x002003BC File Offset: 0x001FE5BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RotateMapScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170035AA RID: 13738
		// (get) Token: 0x0600BDF0 RID: 48624 RVA: 0x002003CE File Offset: 0x001FE5CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RotateMapScRsp.Descriptor;
			}
		}

		// Token: 0x0600BDF1 RID: 48625 RVA: 0x002003D5 File Offset: 0x001FE5D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotateMapScRsp()
		{
		}

		// Token: 0x0600BDF2 RID: 48626 RVA: 0x002003E0 File Offset: 0x001FE5E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotateMapScRsp(RotateMapScRsp other) : this()
		{
			this.clientPosVersion_ = other.clientPosVersion_;
			this.motion_ = ((other.motion_ != null) ? other.motion_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BDF3 RID: 48627 RVA: 0x00200438 File Offset: 0x001FE638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotateMapScRsp Clone()
		{
			return new RotateMapScRsp(this);
		}

		// Token: 0x170035AB RID: 13739
		// (get) Token: 0x0600BDF4 RID: 48628 RVA: 0x00200440 File Offset: 0x001FE640
		// (set) Token: 0x0600BDF5 RID: 48629 RVA: 0x00200448 File Offset: 0x001FE648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ClientPosVersion
		{
			get
			{
				return this.clientPosVersion_;
			}
			set
			{
				this.clientPosVersion_ = value;
			}
		}

		// Token: 0x170035AC RID: 13740
		// (get) Token: 0x0600BDF6 RID: 48630 RVA: 0x00200451 File Offset: 0x001FE651
		// (set) Token: 0x0600BDF7 RID: 48631 RVA: 0x00200459 File Offset: 0x001FE659
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MotionInfo Motion
		{
			get
			{
				return this.motion_;
			}
			set
			{
				this.motion_ = value;
			}
		}

		// Token: 0x170035AD RID: 13741
		// (get) Token: 0x0600BDF8 RID: 48632 RVA: 0x00200462 File Offset: 0x001FE662
		// (set) Token: 0x0600BDF9 RID: 48633 RVA: 0x0020046A File Offset: 0x001FE66A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600BDFA RID: 48634 RVA: 0x00200473 File Offset: 0x001FE673
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RotateMapScRsp);
		}

		// Token: 0x0600BDFB RID: 48635 RVA: 0x00200484 File Offset: 0x001FE684
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RotateMapScRsp other)
		{
			return other != null && (other == this || (this.ClientPosVersion == other.ClientPosVersion && object.Equals(this.Motion, other.Motion) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BDFC RID: 48636 RVA: 0x002004E4 File Offset: 0x001FE6E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ClientPosVersion != 0U)
			{
				num ^= this.ClientPosVersion.GetHashCode();
			}
			if (this.motion_ != null)
			{
				num ^= this.Motion.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BDFD RID: 48637 RVA: 0x00200552 File Offset: 0x001FE752
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BDFE RID: 48638 RVA: 0x0020055A File Offset: 0x001FE75A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BDFF RID: 48639 RVA: 0x00200564 File Offset: 0x001FE764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ClientPosVersion != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.ClientPosVersion);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this.motion_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.Motion);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BE00 RID: 48640 RVA: 0x002005DC File Offset: 0x001FE7DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ClientPosVersion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ClientPosVersion);
			}
			if (this.motion_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Motion);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BE01 RID: 48641 RVA: 0x0020064C File Offset: 0x001FE84C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RotateMapScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ClientPosVersion != 0U)
			{
				this.ClientPosVersion = other.ClientPosVersion;
			}
			if (other.motion_ != null)
			{
				if (this.motion_ == null)
				{
					this.Motion = new MotionInfo();
				}
				this.Motion.MergeFrom(other.Motion);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BE02 RID: 48642 RVA: 0x002006C8 File Offset: 0x001FE8C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BE03 RID: 48643 RVA: 0x002006D4 File Offset: 0x001FE8D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 80U)
					{
						if (num != 90U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.motion_ == null)
							{
								this.Motion = new MotionInfo();
							}
							input.ReadMessage(this.Motion);
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.ClientPosVersion = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004C6F RID: 19567
		private static readonly MessageParser<RotateMapScRsp> _parser = new MessageParser<RotateMapScRsp>(() => new RotateMapScRsp());

		// Token: 0x04004C70 RID: 19568
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004C71 RID: 19569
		public const int ClientPosVersionFieldNumber = 5;

		// Token: 0x04004C72 RID: 19570
		private uint clientPosVersion_;

		// Token: 0x04004C73 RID: 19571
		public const int MotionFieldNumber = 11;

		// Token: 0x04004C74 RID: 19572
		private MotionInfo motion_;

		// Token: 0x04004C75 RID: 19573
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04004C76 RID: 19574
		private uint retcode_;
	}
}
